#ifndef WEATHER_H
#define WEATHER_H

#include <QWidget>
#include <QTimer>
#include <QDateTime>
#include <QDebug>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonValue>
#include <QJsonParseError>

namespace Ui {
class Weather;
}

class Weather : public QWidget
{
    Q_OBJECT

public:
    explicit Weather(QWidget *parent = nullptr);
    ~Weather();

private slots:
    void show_time();

    void readdata(QNetworkReply *);

    void wea_image(QString image);

    void select_image(QString type);
private:
    Ui::Weather *ui;

    QTimer *time;

    QNetworkAccessManager *Network;
};

#endif // WEATHER_H
